package com.example.demo.service;

import com.example.demo.domain.po.BookEntity;
import com.example.demo.domain.po.BorrowEntity;

import java.util.List;

public interface BorrowService {
    List<BorrowEntity> getBorrowsByUserName(String useName);
    List<BorrowEntity> getBorrowsByBookID(Long bookID);
    List<BorrowEntity> getBorrows();
    List<BorrowEntity> getBorrowsByBookName(String bookName);
    BorrowEntity addBorrow(BorrowEntity borrowEntity);
    boolean updateBorrowEnd(int id, int day);
    int deleteBorrow(BorrowEntity borrowEntity);
    BookEntity queryBookByBookName(String bookName);

}
